package com.tsystems.tuni.sportplanet.businesslogic;

import javax.ejb.Stateless;

import com.tsystems.tuni.sportplanet.businesslogic.accessinterfaces.RegistrationBeanLocal;
import com.tsystems.tuni.sportplanet.businesslogic.accessinterfaces.RegistrationBeanRemote;
import com.tsystems.tuni.sportplanet.dao.UserDAO;
import com.tsystems.tuni.sportplanet.dao.UserDAOImpl;

/**
 * @author Ippolitov Anton, Yuriy Eremin
 */
@Stateless
public class RegistrationBeanImpl implements RegistrationBeanLocal,
		RegistrationBeanRemote {

	private UserDAO userDAO = new UserDAOImpl();

	public boolean login(String user, String password) {
		return userDAO.login(user, password);
	}
}
